package com.vitabuybuy.tv.widget;

import android.app.Dialog;
import android.content.Context;
import android.widget.TextView;

import com.vitabuybuy.tv.R;


public class DialogLoading extends Dialog{

    private TextView tvContent;

    public DialogLoading(Context context) {
        super(context, R.style.loadDialog);
        setContentView(R.layout.dialog_loading_layout);
        setCanceledOnTouchOutside(false);
        tvContent = findViewById(R.id.tvContent);
    }

    @Override
    public void show() {
        super.show();
    }

    public void show(boolean isCancelable) {
        setCancelable(isCancelable);
        show();
    }
    public void setContent(String content) {
        tvContent.setText(content);
    }

    @Override
    public void dismiss() {
        super.dismiss();
    }
}
